<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Demo</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
function courseController($scope,$http) {
    $http.get("http://localhost:8080/registerCourse/data1.json")
    .success(function(response) {$scope.courses = response;});
}
</script>
</head>
<body>
<spring:message code='system.gen.text.login' />:123

<hr>

<dir ng-controller="courseController">
	<ul>
  		<li ng-repeat="x in courses">
    		{{ x.courseId + ', ' + x.courseName }}
  		</li>
	</ul>
</dir>
</body>
</html>